|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.cebis.moccabox.domain.AbstractConceptualObject
de.cebis.moccapart.calendar.domain.CalendarComponent
de.cebis.moccapart.calendar.domain.CalendarEvent
public class CalendarEvent
Object representing an CalendarEvent.
The CalendarEvent-object encapsulates different methods, to
store and retrieve the different attributes of a calendar component.
The CalendarEvent does not necessarily have to represent an
object stored in the database, but can be instantiated with an
EventSource-object as well.
| Field Summary | |
|---|---|
static int |
CANCEL
The CalendarEntry is a cancel of a request. |
static java.lang.String |
PROP_ALLDAY
|
static java.lang.String |
PROP_DURATIONINHOURS
|
static java.lang.String |
PROP_DURATIONTEXT
|
static java.lang.String |
PROP_END
|
static java.lang.String |
PROP_ENDTIME
|
static java.lang.String |
PROP_INVITED
|
static java.lang.String |
PROP_METHOD
|
static java.lang.String |
PROP_RECURRENCEID
|
static int |
PUBLISH
The CalendarEntry is a publish. |
static int |
REPLY
The CalendarEntry is a reply to a request. |
static int |
REQUEST
The CalendarEntry is a request. |
| Fields inherited from class de.cebis.moccapart.calendar.domain.CalendarComponent |
|---|
NO_RIGHTS, NO_STATUS, OPAQUE, PROP_CALENDAR, PROP_CALENDARCOMPONENTCATEGORY, PROP_CLASSIFICATION, PROP_COMMENT, PROP_DESCRIPTION, PROP_DURATION, PROP_EDITABLE, PROP_LOCATION, PROP_MOVEABLE, PROP_ORGANISER, PROP_RELATEDCONCEPT, PROP_SEARCHFIELD, PROP_START, PROP_STARTTIME, PROP_STATUS, PROP_SUMMARY, PROP_TRANSPARENCY, READ, STATUS_CANCELLED, STATUS_CONFIRMED, STATUS_TENTATIVE, TIME_ONLY, TRANSPARENT, WRITE |
| Fields inherited from interface de.cebis.moccabox.domain.IPersistentConcept |
|---|
PROP_CREATION_DATE, PROP_ID, PROP_LAST_EDIT_DATE, PROP_LAST_EDIT_USER |
| Constructor Summary | |
|---|---|
CalendarEvent()
|
|
CalendarEvent(java.lang.Long _iD)
Constructor for primary key |
|
| Method Summary | |
|---|---|
int |
calculateDuration()
Calculates the length of the event in days. |
void |
copyAttributeValues(CalendarEvent event)
Copies the attribute values from another CalendarEvent
object. |
boolean |
getAllDay()
Returns if the CalendarEntry is an all-day event. |
CalendarEvent |
getCalendarEvent()
|
double |
getDurationInHours()
Returns the duration of the event in hours and minutes. |
java.lang.String |
getDurationText()
Returns the duration of the event in hours and minutes. |
java.util.Date |
getEnd()
Returns the end date and time of the CalendarEntry. |
java.lang.String |
getEndText()
Returns a text formatted date. |
java.lang.String |
getEndTime()
Returns the end time of the CalendarEntry. |
boolean |
getInvited()
Returns if the current user is only invited to the event. |
int |
getMethod()
Returns the special method the CalendarEvent can be used
to. |
java.lang.String |
getRecurrenceID()
Returns the recurrence id of the CalendarEvent. |
java.lang.String |
getStartTime()
Returns the starting time of the CalendarEntry. |
boolean |
isRecurring()
Returns if the CalendarEvent object is part of
a series of recurring CalendarEvent objects. |
void |
setAllDay(boolean allday)
Sets if the CalendarEntry is an all-day event. |
void |
setDuration(java.lang.String duration)
Sets the duration of the CalendarEvent in hours. |
void |
setDurationInHours(double hours)
Sets the hours of duration as double value. |
void |
setEnd(java.util.Date end)
Sets the end date and time of the CalendarEntry. |
void |
setEndTime(java.lang.String endTime)
Sets the end time of the CalendarEntry. |
void |
setInvited(boolean invited)
Sets if the current user is only invited to the event. |
void |
setMethod(int method)
Sets the special method the CalendarEvent is used to. |
void |
setRecurrenceID(java.lang.String recurrenceid)
Sets the recurrence id of the CalendarEvent. |
void |
setStart(java.util.Date start)
Sets the starting date and time of the CalendarComponent. |
void |
setStartTime(java.lang.String start)
Sets the starting date and time of the CalendarComponent. |
| Methods inherited from class de.cebis.moccapart.calendar.domain.CalendarComponent |
|---|
getCalendar, getCategory, getClassification, getComment, getDescription, getDuration, getLocation, getOrganiser, getRelatedConcept, getSearchField, getStart, getStartText, getStarttime, getStatus, getSummary, getTransp, getTransparency, isEditable, isMoveable, setCalendar, setCategory, setClassification, setComment, setDescription, setEditable, setLocation, setMoveable, setOrganiser, setRelatedConcept, setSearchField, setStarttime, setStatus, setSummary, setTransp, setTransparency |
| Methods inherited from class de.cebis.moccabox.domain.AbstractConceptualObject |
|---|
getCreationDate, getId, getLastEditDate, getVersion, setCreationDate, setId, setLastEditDate, setVersion |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int REQUEST
CalendarEntry is a request.
public static final int REPLY
CalendarEntry is a reply to a request.
public static final int PUBLISH
CalendarEntry is a publish.
public static final int CANCEL
CalendarEntry is a cancel of a request.
public static final java.lang.String PROP_ALLDAY
public static final java.lang.String PROP_DURATIONINHOURS
public static final java.lang.String PROP_DURATIONTEXT
public static final java.lang.String PROP_END
public static final java.lang.String PROP_ENDTIME
public static final java.lang.String PROP_INVITED
public static final java.lang.String PROP_METHOD
public static final java.lang.String PROP_RECURRENCEID
| Constructor Detail |
|---|
public CalendarEvent()
public CalendarEvent(java.lang.Long _iD)
| Method Detail |
|---|
public CalendarEvent getCalendarEvent()
public void setStart(java.util.Date start)
CalendarComponent.
setStart in class CalendarComponentstart - Date and time that the entry starts.public void setStartTime(java.lang.String start)
CalendarComponent.
setStartTime in class CalendarComponentstart - Date and time that the entry starts.public int getMethod()
CalendarEvent can be used
to.
CalendarEvent is used to.
REQUEST, REPLY, PUBLISH, CANCEL.public void setMethod(int method)
CalendarEvent is used to.
method - Method, the CalendarEvent is used to.
REQUEST, REPLY, PUBLISH, CANCEL.public java.lang.String getRecurrenceID()
CalendarEvent.
CalendarEvent.
Null, if CalendarEvent is a single event.public void setRecurrenceID(java.lang.String recurrenceid)
CalendarEvent.
recurrenceid - The Recurrence ID for the CalendarEvent.public java.lang.String getStartTime()
CalendarEntry.
getStartTime in class CalendarComponentpublic java.util.Date getEnd()
CalendarEntry.
public java.lang.String getEndText()
public void setEnd(java.util.Date end)
CalendarEntry.
end - Date and time that the entry starts.public void setDuration(java.lang.String duration)
CalendarEvent in hours.
Example: P1Y2M3DT4H30M12S means the duration of the enty is of
1 year, 2 months, 3 days, 4 hours, 30 minutes and 12 seconds.
setDuration in class CalendarComponentduration - Duration of the CalendarComponent.public java.lang.String getDurationText()
public void setDurationInHours(double hours)
hours - The hours of duration of the CalendarEventpublic double getDurationInHours()
public java.lang.String getEndTime()
CalendarEntry.
public void setEndTime(java.lang.String endTime)
CalendarEntry.
endTime - Time that the entry starts.public boolean getAllDay()
CalendarEntry is an all-day event.
public void setAllDay(boolean allday)
CalendarEntry is an all-day event.
allday - True, if the entry is all-day. False, otherwise.public int calculateDuration()
public void setInvited(boolean invited)
invited - True, if the user has been invited. False, if
itīs an event thatīs in one of his calendars.public boolean getInvited()
public boolean isRecurring()
CalendarEvent object is part of
a series of recurring CalendarEvent objects.
public void copyAttributeValues(CalendarEvent event)
CalendarEvent
object. If itīs a recurring CalendarEvent, the date will
not be overwritten.
event - The source object from which the attribute values shall be
copied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||